<template>
	<view>
		<uni-section title="住院信息" type="line">
			<uni-card :is-shadow="false" v-for="(item,index) in Data">
				<uni-list>
				  <uni-list-item showExtraIcon="true" :extraIcon="{type: 'person-filled'}" title="床号" :rightText="item.bId" />
				  <uni-list-item showExtraIcon="true"  title="医生工号" :rightText="item.dId" />
				  <uni-list-item showExtraIcon="true"  title="原因" :rightText="item.bReason" />
				  <uni-list-item showExtraIcon="true"  title="挂号时间" :rightText="item.bStart" />
				</uni-list>
			</uni-card>
		</uni-section>
	</view>
</template>

<script>
	import {
		findBedByPid
	} from "@/api/system/registe";
	export default {
		data() {
			return {
				Data: []
			}
		},
		onLoad() {
			const pid = uni.getStorageSync('pid');
			findBedByPid(pid).then(res => {
				this.Data = res.data
				console.log(this.Data)
				// {"doctor":{"dId":1000,"dPassword":null,"dName":null,"dGender":null,"dCard":null,"dEmail":null,"dPhone":null,"dPost":null,"dIntroduction":null,"dSection":null,"dState":null,"dPrice":null,"dPeople":null,"dStar":null,"dAvgStar":null,"arrangeId":null},
				// "patient":{"pId":2001,"pPassword":null,"pName":null,"pGender":null,"pCard":null,"pEmail":null,"pPhone":null,"pState":null,"pBirthday":null,"pAge":null},
				// "countSection":null,"oId":2408,"pId":2001,"dId":1000,"oRecord":null,"oStart":"2024-12-22 08:30-09:30","oEnd":null,"oState":0,"oDrug":null,"oCheck":null,"oTotalPrice":null,"oPriceState":0,"countGender":null,"oAdvice":null,"dName":"张医生","pName":"曾先生"}
			})
		},
	}
</script>

<style>
	.container {
		overflow: hidden;
	}

	.custom-cover {
		flex: 1;
		flex-direction: row;
		position: relative;
	}

	.cover-content {
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		height: 40px;
		background-color: rgba($color: #000000, $alpha: 0.4);
		display: flex;
		flex-direction: row;
		align-items: center;
		padding-left: 15px;
		font-size: 14px;
		color: #fff;
	}

	.card-actions {
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		align-items: center;
		height: 45px;
		border-top: 1px #eee solid;
	}

	.card-actions-item {
		display: flex;
		flex-direction: row;
		align-items: center;
	}

	.card-actions-item-text {
		font-size: 12px;
		color: #666;
		margin-left: 5px;
	}

	.cover-image {
		flex: 1;
		height: 150px;
	}

	.no-border {
		border-width: 0;
	}
</style>